<%@page import="bean.BoardVO"%>
<%@page import="bean.BoardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view.jsp</title>
<link rel="stylesheet" href="../css/boards.css"/>
<script type="text/javascript" src="../js/boards.js"></script>
</head>
<body>
	<jsp:useBean id="board" class="bean.BoardVO" scope="page"/>
	<jsp:setProperty property="*" name="board"/>
	<form name="hiddenFrm" method="post">
		<input type="hidden" name="no" value="<%=board.getNo()%>"/>
		<input type="hidden" name="nowPage" value="<%=board.getNowPage()%>"/>
		<input type="hidden" name="find" value="<%=board.getFind()%>"/>
	</form>	
	<%
		BoardDTO dto = new BoardDTO();
		dto.setVo(board);
		BoardVO v = dto.selectOne();
	%>
	<h1>게시판 보기</h1><hr/>
	<ul>
		<li>글번호: <%=v.getNo() %></li>

		<li>제목: <%=v.getTitle() %></li>
		<li>단계: <%=v.getGrp() %></li>
		<li>글번호: <%=v.getSeq() %></li>
		<li>부모 확인:<%=v.getLvl() %>
	</ul><p/>
	<input type="button" id="btnRepInput" value="답글 달기"/>
	<input type="button" id="btnModify" value="수정"/>
	<input type="button" id="btnDelete" value="삭제"/>
	<input type="button" id="btnList" value="목록"/>
</body>
<script type="text/javascript">viewInit();</script>
</html>